package org.example.completed.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2025-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("adoption_application")
public class AdoptionApplication implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 用户ID，关联用户表
     */
    private String userId;

    /**
     * 宠物ID，关联宠物表
     */
    private String petId;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime applicationTime;

    /**
     * 申请状态（0-待审核、1-已通过、2-已拒绝等）
     */
    private String status;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 普通领养-1 云领养-2
     */
    private String isCloud;

    private String userAcoount;

    private String avatarUrl;

    private String petName;


}
